<%-- 
    Document   : gestionModificarLogin
    Created on : 25/08/2013, 07:50:12 PM
    Author     : Ricardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Modificar Sesion de <s:property value="login.user" /> </title>
    </head>
    <body>
        <h3>Modificar Sesion de <s:property value="empleado.nombre" /></h3>
        <form name="modficarLoginA" id="modficarLoginA">
            <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                <tr>
                    <th valign="top">
                        Tipo de Usuario: 
                    </th> 
                    <td>                        
                        <select name="tipo" size=1> 
                            <s:iterator value="tipos" var="tip" status="estatus"> 
                                <s:if test="tipa.idTipo==#tip.idTipo">
                                    <option selected value="tip.idTipo">Pitrorr</option>                                                                
                                </s:if>
                                <s:else>
                                    <option value="<s:property value="#tip.idTipo" />"><s:property value="#tip.tipo" /></option>
                                </s:else>                                                                    
                            </s:iterator>
                        </select>    
                    </td>    
                    <td>                       
                    </td>
                </tr>     
                <tr>
                    <th valign="top">
                        Usuario: 
                    </th> 
                    <td>
                        <input type="text" class="inp-form" name="user" id="user" value="<s:property value="login.user" />"/>
                    </td>    
                    <td>
                        <div class="error-left"></div>
                        <div class="error-inner" id="euser">Longitud mayor a 3.</div>
                    </td>
                </tr>  
                <tr>
                    <th valign="top">
                        Password: 
                    </th> 
                    <td>
                        <input type="password" class="inp-form" name="pass" id="pass" value="<s:property value="login.pass" />"/>
                    </td>    
                    <td>
                        <div class="error-left"></div>
                        <div class="error-inner" id="epass">Longitud mayor a 3.</div>
                    </td>
                </tr> 
                <tr>
                    <th valign="top">
                        Repetir Password: 
                    </th> 
                    <td>
                        <input type="password" class="inp-form" name="pass1" id="pass1" value="<s:property value="login.pass" />"/>
                    </td>    
                    <td>
                        <div class="error-left"></div>
                        <div class="error-inner" id="epass1">Los password no coinciden</div>
                    </td>
                </tr>                                                       
                <tr>
                    <td colspan="2">
                        <input type="reset" class="btn" id="btnRegresar" value="Cancelar">
                        <input type="submit" class="btn" value="Aceptar" name="btnModificarLogin" id="btnModificarLogin">
                    </td>    
                </tr>    
            </table>
            <input type="hidden" name="idLogin" value="<s:property value="login.idLogin" />"> 
        </form>                        
    </body>
</html>
